<%
  String agent= request.getHeader("user-agent");

  if (agent.contains("android") || agent.contains("iphone") || agent.contains("ipad"))

  response.sendRedirect("business/application.jsf");

  else

  response.sendRedirect("business/login2.jsf");
%>
